<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title> starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">


</head>

<body>
	<table class="list">
		<tbody>
			<tr>
				<th>id</th>
				<th>标题</th>
				<th>内容</th>
				<th>操作</th>
			</tr>

			<c:forEach items="${blogPage}" var="x" varStatus="index">
				<tr>
					<td>${x.id}</td>
					<td>${x.title}</td>
					<td>${x.content}</td>
					
					<td>&nbsp;&nbsp;<a
						href="<%=request.getContextPath()%>/blog/delete/${x.id}">删除</a> &nbsp;&nbsp;<a
						href="<%=request.getContextPath()%>/blog/edit/${x.id}">修改</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>
